$hd: 2;
$spacing-h-lg: 12px * $hd !default;
$spacing-v-lg: 12px * $hd !default;
$font-size-base: 14px * $hd !default; // 常用字号

$color-text-base: #333 !default; // 文字的基本色
$color-brand: #fff !default;
$at-tabs-color: $color-text-base !default;
$at-tabs-color-active: $color-brand !default;
$at-tabs-line-height: 1px !default;
$at-tabs-font-size: $font-size-base !default;
$component: ".tabs";
$color-bg: #fff !default;

$at-tabs-bg-color: $color-bg !default;

.tabs {
  width: 100%;
  height: 100%;
  overflow: hidden;

  &__item {
    position: relative;
    flex: 1;
    padding: $spacing-v-lg $spacing-h-lg;
    color: #fff;
    font-size: $at-tabs-font-size;
    text-overflow: ellipsis;
    overflow: hidden;

    display: inline-block;
    &-underline {
      display: block;
      position: absolute;
      left: 0;
      bottom: 0;
      width: 100%;
      height: 2px;
      background-color: $at-tabs-color-active;
      transform: scaleX(0);
      transition: all 0.15s;
    }

    &--active {
      color: $at-tabs-color-active;

      #{$component}__item-underline {
        transform: scaleX(1);
      }
    }
  }
  &__header {
    position: relative;
    display: flex;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    box-sizing: border-box;
  }
}
